package com.iplatform.file.function.meta.service;

import com.alibaba.fastjson.JSONObject;

import com.iplatform.file.function.meta.domain.PreMetaDataBean;
import com.iplatform.file.function.meta.vo.PreMetaDataVo;

import javax.sql.DataSource;
import java.util.List;

/**
 * Created/**
 * Created with IntelliJ IDEA.
 * User: lh
 * Date: 2021/01/06 15:45
 * Description:
 * Version: V1.0
 */

public interface NetworkService {

    List<JSONObject> getTables();

    public DataSource getDataSource(String dbConfigId);

    List<JSONObject> getTableColumns( String tableCode);

    PreMetaDataBean queryNetWorkById(Long id);

    int insertPreservation(PreMetaDataBean preMetaDataBean);

    Integer querypreMetaDataBean(PreMetaDataBean preMetaDataBean);

    Integer queryUpdate(PreMetaDataBean preMetaDataBean);

    List<PreMetaDataBean> selectPreData(String tableCode, String outPutName, String inPutName,String putName);

    List<String> sentPost(String sql);

    PreMetaDataVo selectDataById(Long id);

    int deletePreMetaData(Long id);

    List<PreMetaDataVo> queryDataByConDition(PreMetaDataVo preMetaDataVo);

    PreMetaDataBean selectDatapreMeta(Long id);

    List<PreMetaDataVo> queryPreData();

    List<PreMetaDataBean> selectPreDataById(Long id);

    void updatePre(PreMetaDataBean preMetaDataBean);
}
